home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ps_1_1
-
- tex t0 ;texture1
- tex t1 ;texture2
-
-
- mul r0.rgb, t0, t1 ; wymnozenie koloru i detalu
- +mul r0.a, v0.b, c0.b ; oswietlenie statyczne * cieniowanie
-
- mul r0.rgb, r0, c5 ; wymnozenie oswietlenia przez kolor pory dnia/swiatla
- +mad_sat r0.a, r0.a, c7.b, c7.a ; skalowanie oswietlenia (dodanie ambientu)
-
- mul r0, r0, r0.a ; mnozy kolor przez zmodyfikowana lightmape
-
- ")
-
-
-